package org.example.service;

import dev.langchain4j.agent.tool.P;
import dev.langchain4j.agent.tool.Tool;
import org.springframework.stereotype.Service;

@Service
public class ToolService {

    @Tool("淮北有多少个名字的")
    Integer getNameCount(@P("姓名") String name) {
        System.out.println("name = " + name);
        // todo ....
        return 10;
    }
}
